]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
authPrompt: Don't clear querying service unless querying service fails
authorRay Strode <rstrode@redhat.com>
Wed, 28 Apr 2021 14:36:46 +0000 (10:36 -0400)
committerMarge Bot <marge-bot@gnome.org>
Wed, 28 Apr 2021 17:23:01 +0000 (17:23 +0000)
At the moment we treat a failure in any service as a signal to stop
tracking users responses to service questions.

This commit makes sure we don't stop waiting for answers if a background
service fails.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1821>

js/gdm/authPrompt.js

index de777450e7a9d3ffc3d0fa940e9ae67f7b84ff7b..0b3da4ecb2fce78f548bc59481a752c685302e73 100644 (file)
@@ -321,8 +321,11 @@ var AuthPrompt = GObject.registerClass({
 
     _onVerificationFailed(userVerifier, serviceName, canRetry) {
         const wasQueryingService = this._queryingService === serviceName;
-        this._queryingService = null;
-        this.clear();
+
+        if (wasQueryingService) {
+            this._queryingService = null;
+            this.clear();
+        }
 
         this.updateSensitivity(canRetry);
         this.setActorInDefaultButtonWell(null);